package mws;

public class mapper {
    public static void main(String[] args) {
        MapContext mapContext = new MapContext(8888, "127.0.0.1");
        mapContext.start();

        try {
            new ClientContext(mapContext).init().add(new WordCountMapper()).process("abcefg");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
